
/**
 * 
 */
package com.advertise.service;

import java.io.Serializable;
import java.util.List;

/**
 * @author : James Teng
 * @version :1.0
 *
 */
public interface BaseService_IFace<PO, ID extends Serializable> {
	public List<PO> getAll();		// get all the records for this po object in the table
	
	public boolean update(PO po);	 //modify the record use new object
	
	public boolean save(PO po); 	//create a new object 
	
	public boolean deletebyID(ID id);	//delete the object by id
	
	public boolean deleteByCollections(List<PO> collectionData); 	//delete the data that exists in the collectionData
	
	public PO getbyID(ID id);		//get the object by the given id
}
